/**
 * ****************************************************************************
 * Project: RoboBridge
 * ----------------------------------------------------------------------------
 * -------------------------- [c]2012 - KrawallMann ---------------------------
 * ---------------------- http://www.krawallmann.de.tc/ -----------------------
 * ****************************************************************************
 * File: HelloState.java Package:
 * tc.de.krawallmann.robobridge.communication.protocol Version: 1.0 Author(s):
 * KrawallMann
 * ****************************************************************************
 * Description:
 * ****************************************************************************
 */
package tc.de.krawallmann.robobridge.communication.protocol;

import tc.de.krawallmann.robobridge.communication.Command;
import tc.de.krawallmann.robobridge.communication.CommandType;

/**
 * The Class HelloState sends a HELLO and returns.
 * 
 * @author KrawallMann
 * @version 1.0
 */
public class HelloState extends AbstractAckAwaitingProtocolState<RoboBridgeProtocol> {

	/**
	 * Instantiates a new hello state.
	 * 
	 * @param protocol
	 *            the protocol
	 */
	public HelloState(final RoboBridgeProtocol protocol) {
		super(protocol, 9);
	}

	/*
	 * (non-Javadoc)
	 * @see tc.de.krawallmann.robobridge.communication.protocol.
	 * AbstractAckAwaitingProtocolState#generateCommand()
	 */
	@Override
	protected Command generateCommand() {
		return new Command(CommandType.HELLO, true);
	}

}
